<%@ page import="com.ujiuye.service.DeleteService" %>
<%@ page import="java.io.PrintWriter" %><%--
  Created by IntelliJ IDEA.
  User: 22276
  Date: 2021/9/17
  Time: 17:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <c:if test="${user==null}">
        <jsp:forward page="login.jsp"></jsp:forward>
    </c:if>
    <c:if test="${user!=null}">
        欢迎 ${user.username}
    </c:if>
    <br>
<table border="1" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <th>编号</th>
        <th>用户名</th>
        <th>密码</th>
        <th>姓名</th>
        <th>电话</th>
        <th>生日</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${ulist}" var="user">
        <tr>
            <td>${user.uid}</td>
            <td>${user.username}</td>
            <td>${user.password}</td>
            <td>${user.name}</td>
            <td>${user.telephone}</td>
            <td>${user.birthday}</td>
            <td><a href="user?uid=${user.uid}">删除</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
